package com.example.survey23.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 23Group
 * @since 2022-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SurveyBase对象", description="")
public class SurveyBase implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private long id;

    @ApiModelProperty(value = "创建问卷的用户id")
    private long userId;

    @ApiModelProperty(value = "对于复制而来的问卷拥有parent_id")
    private long parentId;

    @ApiModelProperty(value = "问卷名称")
    private String surveyName;

    @ApiModelProperty(value = "问卷中题目的数量")
    private Integer surveyQuNum;

    @ApiModelProperty(value = "回答该问卷的数量")
    private Integer answerNum;

    @ApiModelProperty(value = "创建问卷的时间")
    private Date createDate;

    @ApiModelProperty(value = "问卷分享链接")
    private String shareLink;

    @ApiModelProperty(value = "问卷是否被分享，1为分享，0未被分享")
    private Integer isShared;

    @ApiModelProperty(value = "问卷设计中0；已发布1；已暂停2；已截止3")
    private Integer state;

    @ApiModelProperty(value = "截止问卷看不见，已截止0；其他状态1。")
    private Integer isVisibility;

    @ApiModelProperty(value = "问卷是否被删除，删除为1，未删除为2")
    private Integer isDelete;

}
